// 导入fs
const fs = require('fs')

function setTable(request, response) {

  const {arr} = request.body
  
  fs.writeFile('./data.json', JSON.stringify(request.body) , ()=>{})

  response.send(JSON.stringify( {
        code:1,
        msg:'文件修改成功',
    } ))


}

module.exports = { setTable }